<?php

if($_POST['xmlhttp']){
	include_once('config.php');
	include_once(mnminclude.'group.php');

	$group = new Group();
	$group->id = $_POST['group'];
	$group->read();
	
	$sendmsg = $group->add_user($_POST['user'],'normal',$_POST['state']);

	switch ($sendmsg) {
		case true:
			echo "success";
			die();
			break;
		default:
			echo "fail";
			die();
			break;
	}
}
?>